package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult pagequery(Integer currentPage, Integer pageSize, String queryString);



  List<Integer> findPermissionById(Integer id);

    void add(Role role, Integer[] permissionIds,Integer[]menuIds);

    List<Menu> findMenusAll();

    void deleteById(Integer id);

    List<Role> findAll();

  List<Integer> findMenuByRoleId(Integer roleId);

  List<Integer> findRolePermissionByRoleId(Integer roleId);

  List<Permission> findAllPermissions();

  boolean edit(Role role, Integer[] permissionIds, Integer[] menuIds);
}
